# -*- coding: utf-8 -*-
print '中文'

print r'\(~_~)/ \(~_~)/'

#
print 'Line 1\nLine 2\nLine 3'

#r'''代替 \n 换行
print r'''Python is created by "Guido".
It is free and easy to learn.
Let's start learn Python in imooc!'''

#字符串
string = 'hello word'
print string

#数字、字符串
x1 = 1
d = 3
n = 100
x100 = n
s = '???'
print s


#截取
url = 'http://'
print url[0:3]


str = 'Hello World!'
print str           # 输出完整字符串
print str[0]        # 输出字符串中的第一个字符
print str[2:5]      # 输出字符串中第三个至第五个之间的字符串
print str[2:]       # 输出从第三个字符开始的字符串
print str * 2       # 输出字符串两次
print str + "TEST"  # 输出连接的字符串